package me.caofeng.service.api;

import me.caofeng.pojo.FileForm;
import me.caofeng.pojo.Response;
import org.springframework.web.multipart.MultipartFile;

import javax.print.DocFlavor;
import java.io.StreamTokenizer;
import java.util.List;

/**
 * Copyright © 2017曹峰. All rights reserved.
 *
 * @Prject: mall
 * @Package: me.caofeng.service.api
 * @Description: 文件服务接口
 * @Author: 曹峰 blog.caofeng.me
 * @Date: 2017-06-21 23:13
 * @Version: V1.0
 */
public interface IFileService {
    /**
     * @Author:曹峰 blog.caofeng.me
     * @Date: 2017/6/21 23:19
     * @Description: 保存文件
    */
    Response<List<String>> saveFile(List<MultipartFile> files, String category, String path);

    /**
     * @Author:曹峰 blog.caofeng.me
     * @Date: 2017/6/30 16:41
     * @Description: 保存二维码
    */
    Response<String> saveQrCode(String qrCode,String orderId);

}
